import axios from '../../plugins/axios/index'
// import Vuex from '../../store/index'
// import router from '../../router'

export default {
  /**
   * 某个分类的内容
   */
  categoryInfo (id, callback) {
    axios.request({
      url: `api/home/category/${id}`,
      method: 'get'
    }).then(result => {
      console.log(result)
      callback(result)
    })
  }
}
